package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BdMaterialstockMapper;
import com.ruoyi.system.domain.BdMaterialstock;
import com.ruoyi.system.service.IBdMaterialstockService;

/**
 * 物资库存Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-16
 */
@Service
public class BdMaterialstockServiceImpl implements IBdMaterialstockService 
{
    @Autowired
    private BdMaterialstockMapper bdMaterialstockMapper;

    /**
     * 查询物资库存
     * 
     * @param pkMaterialstock 物资库存主键
     * @return 物资库存
     */
    @Override
    public BdMaterialstock selectBdMaterialstockByPkMaterialstock(String pkMaterialstock)
    {
        return bdMaterialstockMapper.selectBdMaterialstockByPkMaterialstock(pkMaterialstock);
    }

    /**
     * 查询物资库存列表
     * 
     * @param bdMaterialstock 物资库存
     * @return 物资库存
     */
    @Override
    public List<BdMaterialstock> selectBdMaterialstockList(BdMaterialstock bdMaterialstock)
    {
        return bdMaterialstockMapper.selectBdMaterialstockList(bdMaterialstock);
    }

    /**
     * 新增物资库存
     * 
     * @param bdMaterialstock 物资库存
     * @return 结果
     */
    @Override
    public int insertBdMaterialstock(BdMaterialstock bdMaterialstock)
    {
        return bdMaterialstockMapper.insertBdMaterialstock(bdMaterialstock);
    }

    /**
     * 修改物资库存
     * 
     * @param bdMaterialstock 物资库存
     * @return 结果
     */
    @Override
    public int updateBdMaterialstock(BdMaterialstock bdMaterialstock)
    {
        return bdMaterialstockMapper.updateBdMaterialstock(bdMaterialstock);
    }

    /**
     * 批量删除物资库存
     * 
     * @param pkMaterialstocks 需要删除的物资库存主键
     * @return 结果
     */
    @Override
    public int deleteBdMaterialstockByPkMaterialstocks(String[] pkMaterialstocks)
    {
        return bdMaterialstockMapper.deleteBdMaterialstockByPkMaterialstocks(pkMaterialstocks);
    }

    /**
     * 删除物资库存信息
     * 
     * @param pkMaterialstock 物资库存主键
     * @return 结果
     */
    @Override
    public int deleteBdMaterialstockByPkMaterialstock(String pkMaterialstock)
    {
        return bdMaterialstockMapper.deleteBdMaterialstockByPkMaterialstock(pkMaterialstock);
    }
}
